package com.my.vote.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.core.entity.BaseEntity;

/**
 * 投票主题
 * 
 * @author chenliang
 *
 */
@Entity
@Table(name = "vote_subject")
public class VoteSubject extends BaseEntity {

	private static final long serialVersionUID = 4404564732531924744L;

	/** 主题标题 */
	@Column(length = 100)
	private String title;

	/** 主题描述说明 */
	@Column(length = 500)
	private String description;

	/** 状态 */
	@Column
	private VoteStatus status;

	/** 截止日期 */
	@Column
	private Date endTime;

	/** 已投人数 */
	@Column
	private int voteCount;

	/** 删除标记 */
	@Column
	private boolean delFlag;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public VoteStatus getStatus() {
		return status;
	}

	public void setStatus(VoteStatus status) {
		this.status = status;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getVoteCount() {
		return voteCount;
	}

	public void setVoteCount(int voteCount) {
		this.voteCount = voteCount;
	}

	public boolean isDelFlag() {
		return delFlag;
	}

	public void setDelFlag(boolean delFlag) {
		this.delFlag = delFlag;
	}

}
